package org.ncibi.cytoscape.metscape.multidisplay;

public class TypedValue {

	// NOTE: read-only object!
	
	private ValueType type;
	private Double value;
	
	public TypedValue(String typeString, Double value) {
		this(ValueType.getTypeForLabel(typeString),value);
	}
	
	public TypedValue(ValueType type, Double value) {
		this.type = type;
		this.value = value;
	}

	public ValueType getType() {
		return type;
	}

	public Double getValue() {
		return value;
	}
	
}
